package com.pocketsweet.model;

import com.avos.avoscloud.AVClassName;
import com.avos.avoscloud.AVObject;

@AVClassName("MLArticleComment")
public class MLArticleComment extends AVObject {
	public static String TYPE = "type";// 评论类型
	public static String USER = "user";// 评论人
	public static String ARTICLE = "article";// 评论对象
	public static String REPLY_USER = "reply_user";// 回复的人
	public static String CONTENT = "content";// 评论的内容

	public MLArticleComment() {

	}

	// 评论类型
	public int getType() {
		return super.getInt(TYPE);
	}

	public void setType(int value) {
		super.put(TYPE, value);
	}

	// 评论人（外键1:1）
	public MLUser getUser() {
		return (MLUser) super.getAVUser(USER);
	}
	
	//  评论的内容
	public String getContent() {
		return super.getString(CONTENT);
	}

	public void setContent(String content) {
		super.put(CONTENT, content);
	}

	public void setUser(MLUser user) {
		super.put(USER, user);
	}

	// 评论的对象（外键1:1）
	public MLArticle getObject() {
		return (MLArticle) super.getAVObject(ARTICLE);
	}

	public void setObject(MLArticle value) {
		super.put(ARTICLE, value);
	}

	// 回复的人（外键1:1）
	public MLUser getReplyUser() {
		return (MLUser) super.getAVUser(REPLY_USER);
	}

	public void setReplyUser(MLUser user) {
		super.put(REPLY_USER, user);
	}

}
